package com.qf.qfssm.web.master.controller;

import com.qf.qfssm.web.master.entity.User;
import com.qf.qfssm.web.master.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘欣
 * @createTime 2023/1/9 13:08
 * @description
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/getUser")
    @ResponseBody
    public User getUser() {
        return userService.selectById(1);
    }
}
